package javacore.dtypeopt.datatype;

class Student{
	String name;
	int age;
	
	public Student(String name, int age) {
		super();
		this.name = name;
		this.age = age;
	}
	
}

public class NonPrimitiveDemo {
	
	public static void main(String[] args) {
		/* Declaring a nonprimitive type*/
		Student aStudent= new Student("noname", 100);
		
		System.out.println(aStudent.name);
		System.out.println(aStudent.age);
	}
}
